package com.fy.common.enums;

/**
 * jdk1.5之后定义枚举
 */
public enum SeasonEnum {
    SPRING("春天","绿色"),
    SUMMER("夏天","红色"),
    AUTUM("秋天","黄色"),
    WINTER("冬天","白色");

    private final String name;
    private final String desc;
    private SeasonEnum(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public static void main(String[] args) {
        SeasonEnum spring = SeasonEnum.SPRING;
        System.out.println(spring);
    }

}
